package com.heima.cloud.service.impl;

import com.heima.cloud.mapper.OrderMapper;
import com.heima.cloud.pojo.Order;
import com.heima.cloud.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderMapper orderMapper;

    @Override
    public List<Order> findOrderByUserId(String username) {
        return orderMapper.findOrderByUserId(username);
    }
}
